﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Pay.DTO.Token {
    public class resp_base<T> {
        public resp_base() {
        }

        public string extra { get; set; }
        public string message { get; set; }
        public T result { get; set; }
    }

    /// <summary>
    /// 银行卡通道列表
    /// </summary>
    public class resp_base_ex<T> : resp_base<T> {
        public paging_cls paging { get; set; }

        public class paging_cls {
            /// <summary>
            /// 第几页
            /// </summary>
            public int current { get; set; }
            /// <summary>
            /// 每页多少条
            /// </summary>
            public int size { get; set; }
            /// <summary>
            /// 共多少条
            /// </summary>
            public int total { get; set; }
        }
    }

    /// <summary>
    /// 银行卡通道列表请求参数
    /// </summary>
    public class card_req : t_head_page_req {
        public card_req() {
            method = "11003";
            current = 1;
            size = 10;
            bankIds = new List<string>();
            topicIds = new List<string>();
            tagIds = new List<string>();
        }
        /// <summary>
        /// 银行id列表
        /// </summary>
        public List<string> bankIds { get; set; }
        /// <summary>
        /// 主题id列表
        /// </summary>
        public List<string> topicIds { get; set; }
        /// <summary>
        /// 主题id列表
        /// </summary>
        public List<string> tagIds { get; set; }
        public int current { get; set; }
        public int size { get; set; }
    }

    /// <summary>
    /// 保存申卡记录请求
    /// </summary>
    public class card_save_req {
        /// <summary>
        /// 申请人姓名
        /// </summary>
        public string name { get; set; }
        /// <summary>
        /// 申请人手机号
        /// </summary>
        public string mobile { get; set; }
        /// <summary>
        /// 申请人身份证
        /// </summary>
        public string idCard { get; set; }
        /// <summary>
        /// 客户端编号
        /// </summary>
        public string clientNo { get; set; }
        /// <summary>
        /// 回调地址
        /// </summary>
        public string callbackUrl { get; set; }
        /// <summary>
        /// 站点通道id:站点通道id和卡种通道id至少一个不能为空。
        /// </summary>
        public long? stationChannelId { get; set; }
        /// <summary>
        /// 卡种通道id:站点通道id和卡种通道id至少一个不能为空。
        /// </summary>
        public long? stationBankCardChannelId { get; set; }
    }

    /// <summary>
    /// 保存申卡记录响应
    /// </summary>
    public class card_save_resp {
        public card_save_resp() {
            binds = new List<bind_merchant_item>();
        }
        public string url { get; set; }
        /// <summary>
        /// 分润分配集合，可空
        /// </summary>
        public List<bind_merchant_item> binds { get; set; }
    }
}
